package org.apache.commons.dbutils.handlers.columns;

import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.SQLException;

import org.apache.commons.dbutils.ColumnHandler;

public class BigDecimalColumnHandler implements ColumnHandler {
	@Override
	public boolean match(Class<?> propType) {
		return BigDecimal.class.equals(propType);
	}

	@Override
	public Object apply(ResultSet rs, int columnIndex) throws SQLException {
		return rs.getBigDecimal(columnIndex);
	}
}